<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Student extends Model
{
    use HasFactory;

   public $table = 'student';
   public $timestamps = false;

    public function className()
    {
        return $this->hasOne(ClassName::class,'id','class_id');
    }

    public function feeLog()
    {
        return $this->hasMany(FeeLog::class,'id','student_id');
    }

}
